package com.scau402.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.scau402.system.mapper.WmsInboundTypeMapper;
import com.scau402.system.domain.WmsInboundType;
import com.scau402.system.service.IWmsInboundTypeService;

/**
 * 入库类型Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-06-26
 */
@Service
public class WmsInboundTypeServiceImpl implements IWmsInboundTypeService 
{
    @Autowired
    private WmsInboundTypeMapper wmsInboundTypeMapper;

    /**
     * 查询入库类型
     * 
     * @param orderType 入库类型主键
     * @return 入库类型
     */
    @Override
    public WmsInboundType selectWmsInboundTypeByOrderType(String orderType)
    {
        return wmsInboundTypeMapper.selectWmsInboundTypeByOrderType(orderType);
    }

    /**
     * 查询入库类型列表
     * 
     * @param wmsInboundType 入库类型
     * @return 入库类型
     */
    @Override
    public List<WmsInboundType> selectWmsInboundTypeList(WmsInboundType wmsInboundType)
    {
        return wmsInboundTypeMapper.selectWmsInboundTypeList(wmsInboundType);
    }

    /**
     * 新增入库类型
     * 
     * @param wmsInboundType 入库类型
     * @return 结果
     */
    @Override
    public int insertWmsInboundType(WmsInboundType wmsInboundType)
    {
        return wmsInboundTypeMapper.insertWmsInboundType(wmsInboundType);
    }

    /**
     * 修改入库类型
     * 
     * @param wmsInboundType 入库类型
     * @return 结果
     */
    @Override
    public int updateWmsInboundType(WmsInboundType wmsInboundType)
    {
        return wmsInboundTypeMapper.updateWmsInboundType(wmsInboundType);
    }

    /**
     * 批量删除入库类型
     * 
     * @param orderTypes 需要删除的入库类型主键
     * @return 结果
     */
    @Override
    public int deleteWmsInboundTypeByOrderTypes(String[] orderTypes)
    {
        return wmsInboundTypeMapper.deleteWmsInboundTypeByOrderTypes(orderTypes);
    }

    /**
     * 删除入库类型信息
     * 
     * @param orderType 入库类型主键
     * @return 结果
     */
    @Override
    public int deleteWmsInboundTypeByOrderType(String orderType)
    {
        return wmsInboundTypeMapper.deleteWmsInboundTypeByOrderType(orderType);
    }
}
